package com.example.framework;

import org.openqa.selenium.By;

public class NavigationHelper extends HelperWithWebDriverBase {
	

	public NavigationHelper(ApplicationManager manager){
		super(manager);

	}
	
	public void openMainPage() {
		//TODO verify
		openUrl("index.php");
	}

	
	
	public void goToHomePage() {
		//TODO verify
		click(By.linkText("home page"));
	}
	
	public void openContactForm() {
		//TODO verify
		click(By.linkText("add new"));
	}
	
	
	
	public void goToGroupListPage() {
		//TODO verify
		click(By.linkText("groups"));
	}

	public void goToContactListPage() {
		openMainPage();
	}
	
	public void openEditContactFormPage(int contactId) {
		click(By.xpath("(//a[@href='edit.php?id=" + contactId + "'])"));
	}
	
}
